package news.example;

import java.util.Date;

/**
 * @author Administrator
 */
public class News {
    private Integer id;
    private String title;
    private String content;
    private String username;
    private String desc;
    private Integer userid;
    private Date createtime;

    public News(Integer id, String title, String content, String username, String desc, Integer userid, Date createtime) {
        this.id = id;
        this.title = title;
        this.content = content;
        this.username = username;
        this.desc = desc;
        this.userid = userid;
        this.createtime = createtime;
    }

    public News(){

    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    @Override
    public String toString() {
        return "News{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", content='" + content + '\'' +
                ", username='" + username + '\'' +
                ", desc='" + desc + '\'' +
                ", userid=" + userid +
                ", createtime=" + createtime +
                '}';
    }
}
